<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Hello React!</title>
<script type="text/javascript" src="vue.js"></script>
<script type="text/javascript" src="vue-router.js"></script>
<script type="text/javascript">
window.onload=function(){
let router=new VueRouter({
	routes:[
	{path:'/user',component:{
		template:'<div>买家</div>'
	}},
	{path:'/company',component:{
		template:'<div>卖家</div>'
	}},
	]
});
new Vue({
el:'#div1',
router,
data:{
x1:'123123'
},
motheds:{

},
computed:{

},
watch:{

}
})
}

</script>
</head>
<body>

<div id="div1">
<router-link to="/user">买家平台</router-link>
<router-link to="/company">卖家平台</router-link>
<router-view></router-view>
</div>


</body>
</html>